package com.cloud.aiservice.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.cloud.aiservice.entity.User;

@Mapper
public interface UserMapper {
	@Select("Select * from user")
	List<User> getAllUser();	
	
	@Insert("Insert into user (username,pwd)values (#{username},#{pwd})")
	int addUser(User u);
	
	@Update("update user set username=#{username},pwd = #{pwd} where id = #{id}")
	int updateUser(User u);
	
	
}
